package com.food.admin.form;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("修改管理员信息参数对象")
public class AccountInfoUpdateForm {
    private Long accountInfoId;
    private Long accountId;
    @Pattern(regexp = "^((13[0-9])|(14[0-9])|(15[0-9])|(17[0-9])|(18[0-9]))\\d{8}$",message = "手机号格式有误")
    private String accountPhone;
    @Pattern(regexp = "(^\\d{15}$)|(^\\d{17}([0-9]|X|x)$)",message = "身份证格式有误")
    private String accountIdCard;
    @Min(0)
    @Max(1)
    private Integer accountSex;
//    @Pattern(regexp = "[\\u4e00-\\u9fa5]",message = "真实姓名必须是中文")
    private String accountRealName;
}
